using Application;

var builder = WebApplication.CreateBuilder(args);

// controller service
builder.Services.AddControllers();

builder.Services.AddEndpointsApiExplorer();

builder.Services.AddSwaggerGen();

// mediaR
builder.Services.AddApplication();

var app = builder.Build();

// controller
app.MapControllers();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();
}

app.UseHttpsRedirection();

app.MapGet("/", () => { });

app.Run();

